home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / BBS / MUBBS / MUBBS Tools1.0.cpt / MUBBS Tools ƒ / help / Programming / V1.0 Programmer notes < prev   
Text File  |  1992-02-08  |  2KB  |  47 lines

  1. Programmer's Info:
  2.  
  3. CHANGES FROM .5 of MUBBS to 1.0 ;    (1/1/92)
  4.  
  5.  
  6. otheruser() is now called with TRUE or FALSE.
  7.  
  8. TRUE means to switch NOW to another user, like when you are just in a idle loop doing nothing much.
  9.  
  10. FALSE means to switch like normal, when the other user's time has come. This is what you would use in most cases. If the other user's time is not here yet, it just returns so that you can continue with what you were doing.
  11.  
  12. If the user's time has come, it switches over and allows other users time.
  13.  
  14. This allows the system to look more "smooth" to the user, it doesn't go fast and then slow, then fast....
  15.  
  16. An example is in the "serial" module, otheruser(TRUE) is used while we are sitting waiting for input from the serial ports.
  17.  
  18. It's up to you, but I recomend ALLWAYS calling it "FALSE" so that it's timed like it should be. If you are in a input loop, otheruser is called for you, or when you "send" out the port, otheruser is called for you.
  19.  
  20. The only real place you have to worry about this is when you are in a big "search" or loop that takes lots of time. Then you call otheruser to give other users some time while you grind away.
  21.  
  22. You SHOULD go through ALL your modules and make sure you are sending FALSE to otheruser if you are calling it.
  23.  
  24. ----------------
  25.  
  26. G.maxtime is now in seconds for a user inactivity timeout.
  27.  
  28. The bbsconfig file has a new value added to it for handling the user timeout.
  29.  
  30. ----------------
  31.  
  32.  USED A GLOBAL RESERVED: (this does not effect the way V.5 would handle this)
  33.  
  34.  modtype[maxnamelength] /* the module's type & version */
  35.  
  36.  used to be reservedchar1[maxport][maxnamelength], /* reserved, DO NOT USE ! */
  37.  
  38.  so its now reservedchar1[(maxport-1)][maxnamelength], /* reserved, DO NOT USE ! */
  39.  
  40.  You put the module's TYPE and VERSION in this up to 30 characters.
  41.  
  42.  A module's TYPE isn't always it's name, you can call "menu1" - "joe3" but it's still a "menu" module!
  43.  
  44. ----------------
  45.  
  46.  
  47.